package com.wangp.springbootsource.listener;

import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.core.annotation.Order;

/**
 * <pre>
 * classname FirstListener
 * description
 * </pre>
 *
 * @author wangp
 * @date 2020/9/3 22:02
 **/
@Order(1)
public class FirstListener implements ApplicationListener<ApplicationStartedEvent> {

    @Override
    public void onApplicationEvent(ApplicationStartedEvent applicationStartedEvent) {
        System.out.println("hello first");
    }
}
